import {createRouter, createWebHistory} from 'vue-router'


const routes = [
    {
        path: '/',
        // component:  import("../layout/index.vue"),
        redirect: '/list',
        // children: [
        //       {
        //           path: 'list',
        //           component: import("../components/Hooks/index")
        //       },
        //     {
        //         path: 'jenkins',
        //         component: import("../components/Jenkins/index")
        //     }
        // ]
    },
    {
        path: '/list',
        component: import('@/components/Hooks/index')
    },
    {
        path: '/jenkins',
        component: import('@/components/Jenkins/index')
    },
    {
        path: '/testclick',
        component: import('@/components/testclick/index')
    },
    {
        path: "/404",
        name: '404',
        component: import('@/components/error/404')
    },
    {
        path: '/:pathMatch(.*)',
        redirect: '/404'
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
});

export default router;